package datalayer.mysql;

import datalayer.interfaces.IDAOAfdeling;
import datalayer.interfaces.IDAOBedrijf;
import datalayer.interfaces.IDAOWerknemer;
import datalayer.abstractFactory.DAOFactory;
import datalayer.dao.DAOWerknemer;

//Auteur: Kristian
//Datum: 17-3-2015
//Aangepast: Vera
//Datum: 24-3-2015

public class MysqlDAO extends DAOFactory {


    private static MysqlDAO instance;

    private MysqlDAO() {
        try {
            Class.forName("com.mysql.jdbc.Driver").newInstance();
		} catch (Exception e){
			e.printStackTrace();
		}
    }

    public static MysqlDAO getInstance() {
        if (instance == null) {
            instance = new MysqlDAO();
        }
        return instance;
    }

	@Override
	public IDAOAfdeling GetDAOAfdeling() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public IDAOBedrijf GetDAOBedrijf() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public IDAOWerknemer getDAOWerknemer() {
		// TODO Auto-generated method stub
		return DAOWerknemer.getInstance();
	}
    

}

